package com.gsq.learning.mybatisplugin.config;

import com.gsq.learning.mybatisplugin.plugin.interceptor.*;
import org.apache.ibatis.plugin.Interceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.Properties;

@Configuration
public class MybatisPluginConfig {

//    @Bean
//    public Interceptor getMyPageInterceptor() {
//        MyPageInterceptor myPlugin = new MyPageInterceptor();
//        Properties properties = new Properties();
//        properties.setProperty("pageNo", "0");
//        properties.setProperty("pageSize", "5");
//        myPlugin.setProperties(properties);
//        return myPlugin;
//    }
//
//    @Bean
//    public Interceptor getMyExecutorInterceptor() {
//        MyExecutorInterceptor myPlugin = new MyExecutorInterceptor();
//        Properties properties = new Properties();
//        properties.setProperty("names", "this is name.");
//        myPlugin.setProperties(properties);
//        return myPlugin;
//    }
//
//    @Bean
//    public Interceptor getMyStatementInterceptor() {
//        MyStatementInterceptor myPlugin = new MyStatementInterceptor();
//        Properties properties = new Properties();
//        properties.setProperty("time", "5");
//        myPlugin.setProperties(properties);
//        return myPlugin;
//    }
//
//    @Bean
//    public Interceptor getMyParameterInterceptor() {
//        MyParameterInterceptor myPlugin = new MyParameterInterceptor();
//        return myPlugin;
//    }
//
//    @Bean
//    public Interceptor getMyResultSetInterceptor() {
//        MyResultSetInterceptor myPlugin = new MyResultSetInterceptor();
//        return myPlugin;
//    }

}
